package com.xbfinal.eduservice.client;

import com.xbfinal.eduservice.client.impl.OrderClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @Title: OrderClient
 * @Author 笑霸fianl
 * @Package com.xbfinal.eduservice.client
 * @Date 2023/3/12 8:48
 * @描述:
 */
@Component
@FeignClient(name = "service-order",fallback = OrderClientImpl.class)
public interface OrderClient {

    @GetMapping("/eduorder/order/isBudCourse/{courseId}/{userId}")
    boolean isBudCourse(@PathVariable("courseId") String courseId,
                               @PathVariable("userId") String userId);
}
